
module("File", package.seeall)

function Append(file, content)
    local f = io.open(file, "a+")
    if f then
        f:write(info)
        f:close()
    end    
end

function Rewrite(file, content)
    local f = io.open(file, "w+")
    if f then
        f:write(info)
        f:close()
    end
end

function ReadAll(file)
    local f = io.open(file, "r")
    if f then
         local ret = f:read("*all")
         f:close()
         return true, ret
    end
    return false, nil   
end